#include <iostream>

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main()
{
    string s1, s2;
    cin >> s1 >> s2;
    cout << (s1 == s2? "equals" : (s1 > s2? s1 : s2)) << endl;
}